/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ContentManagers.Models;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 *
 * @author Ervin  James
 */
public class ProductManager {
    private int PMid;
    private int MTid;
    private String username;
    private String password;
    private boolean accountStatus;
    private boolean passwordStatus;
    private String passwordSalt;
    private String passwordTimestamp;
    
    public void setTimeStamp() {
    Calendar date = Calendar.getInstance();
    SimpleDateFormat dateformatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    passwordTimestamp = dateformatter.format(date.getTime());
    }
    /**
     * @return the PMid
     */
    public int getPMid() {
        return PMid;
    }

    /**
     * @param PMid the PMid to set
     */
    public void setPMid(int PMid) {
        this.PMid = PMid;
    }

    /**
     * @return the MTid
     */
    public int getMTid() {
        return MTid;
    }

    /**
     * @param MTid the MTid to set
     */
    public void setMTid(int MTid) {
        this.MTid = MTid;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the status
     */
    public boolean isAccountStatus() {
        return accountStatus;
    }

    /**
     * @param status the status to set
     */
    public void setAccountStatus(boolean status) {
        this.accountStatus = status;
    }

    /**
     * @return the passwordStatus
     */
    public boolean isPasswordStatus() {
        return passwordStatus;
    }

    /**
     * @param passwordStatus the passwordStatus to set
     */
    public void setPasswordStatus(boolean passwordStatus) {
        this.passwordStatus = passwordStatus;
    }

    /**
     * @return the passwordSalt
     */
    public String getPasswordSalt() {
        return passwordSalt;
    }

    /**
     * @param passwordSalt the passwordSalt to set
     */
    public void setPasswordSalt(String passwordSalt) {
        this.passwordSalt = passwordSalt;
    }
}
